package com.sgcc.sx.pmos.e_sx_home.adapter;

import android.content.Context;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sgcc.pmos.nativesdk.R;
import com.sgcc.sx.pmos.e_sx_home.bean.RetailBean;

import java.util.Random;

public class MarketListAdapter extends BaseQuickAdapter<String, BaseViewHolder> {


    public MarketListAdapter(Context context) {
        super(R.layout.item_txt_center);
    }

    public interface OnItemClickListener {
        //条目点击
        void itemClickListener(int position, String bean);
    }

    private OnItemClickListener mOnItemClickListener;

    public void setOnItemClickListener(OnItemClickListener onItemClickListener) {
        this.mOnItemClickListener = onItemClickListener;
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, String bean) {
        baseViewHolder.setText(R.id.content_txt, bean);

    }

}
